\hypertarget{_analog___input_8c}{\section{Analog\-\_\-\-Input.\-c File Reference}
\label{_analog___input_8c}\index{Analog\-\_\-\-Input.\-c@{Analog\-\_\-\-Input.\-c}}
}


Source file for the \hyperlink{struct_analog___input__t}{Analog\-\_\-\-Input\-\_\-t} data structure.  


{\ttfamily \#include \char`\"{}Tekdaqc\-\_\-\-Debug.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}Analog\-\_\-\-Input.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}Analog\-Input\-\_\-\-Multiplexer.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}Tekdaqc\-\_\-\-Command\-Interpreter.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}A\-D\-S1256\-\_\-\-Driver.\-h\char`\"{}}\\*
{\ttfamily \#include $<$stdlib.\-h$>$}\\*
{\ttfamily \#include $<$string.\-h$>$}\\*
{\ttfamily \#include $<$inttypes.\-h$>$}\\*
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{_analog___input_8c_a7dbebd58d009663585a0cfffdaeba58e}{A\-N\-A\-L\-O\-G\-\_\-\-I\-N\-P\-U\-T\-\_\-\-H\-E\-A\-D\-E\-R}~\char`\"{}\textbackslash{}n\textbackslash{}r-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/\textbackslash{}n\textbackslash{}r\-Analog Input\textbackslash{}n\textbackslash{}r\textbackslash{}t\-Name\-: \%s\textbackslash{}n\textbackslash{}r\textbackslash{}t\-Physical Input\-: \%i\textbackslash{}n\textbackslash{}r\textbackslash{}t\-P\-G\-A\-: \%s\textbackslash{}n\textbackslash{}r\textbackslash{}t\-Rate\-: \%s\textbackslash{}n\textbackslash{}r\textbackslash{}t\-Buffer Status\-: \%s\textbackslash{}n\textbackslash{}r-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/\textbackslash{}n\textbackslash{}r\char`\"{}
\begin{DoxyCompactList}\small\item\em The header format string for printing an analog input to a human readable string. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{group__analog__input_gaf65fcf2267ddebcf80049303dc9507ce}{Analog\-Inputs\-Init} (void)
\begin{DoxyCompactList}\small\item\em Initialize all of the submodules for analog inputs. \end{DoxyCompactList}\item 
\hyperlink{group__tekdaqc__error_ga19df05d919ecca7a7501b35ae9080a32}{Tekdaqc\-\_\-\-Function\-\_\-\-Error\-\_\-t} \hyperlink{group__analog__input_ga30736f8a2ceb6a1993055302893efefe}{List\-Analog\-Inputs} (void)
\begin{DoxyCompactList}\small\item\em Prints a representation of all the added analog inputs. \end{DoxyCompactList}\item 
\hyperlink{group__tekdaqc__error_ga19df05d919ecca7a7501b35ae9080a32}{Tekdaqc\-\_\-\-Function\-\_\-\-Error\-\_\-t} \hyperlink{group__analog__input_gacdd326a56de1d837605d610cc638a959}{Create\-Analog\-Input} (char keys\mbox{[}$\,$\mbox{]}\mbox{[}\hyperlink{group__command__parser_ga6147771b5547853f33eb838895e3d5a2}{M\-A\-X\-\_\-\-C\-O\-M\-M\-A\-N\-D\-P\-A\-R\-T\-\_\-\-L\-E\-N\-G\-T\-H}\mbox{]}, char values\mbox{[}$\,$\mbox{]}\mbox{[}\hyperlink{group__command__parser_ga6147771b5547853f33eb838895e3d5a2}{M\-A\-X\-\_\-\-C\-O\-M\-M\-A\-N\-D\-P\-A\-R\-T\-\_\-\-L\-E\-N\-G\-T\-H}\mbox{]}, uint8\-\_\-t count)
\begin{DoxyCompactList}\small\item\em Creates a new analog input structure and adds it to the board's list. \end{DoxyCompactList}\item 
\hyperlink{group__tekdaqc__error_ga19df05d919ecca7a7501b35ae9080a32}{Tekdaqc\-\_\-\-Function\-\_\-\-Error\-\_\-t} \hyperlink{group__analog__input_gab88a5ebe3b0749d880eec3c892649454}{Add\-Analog\-Input} (\hyperlink{struct_analog___input__t}{Analog\-\_\-\-Input\-\_\-t} $\ast$input)
\begin{DoxyCompactList}\small\item\em Adds an analog input to the board's list. \end{DoxyCompactList}\item 
\hyperlink{group__tekdaqc__error_ga19df05d919ecca7a7501b35ae9080a32}{Tekdaqc\-\_\-\-Function\-\_\-\-Error\-\_\-t} \hyperlink{group__analog__input_ga221c8c5a1bbe659d613fa81a6a834dd9}{Remove\-Analog\-Input} (char keys\mbox{[}$\,$\mbox{]}\mbox{[}\hyperlink{group__command__parser_ga6147771b5547853f33eb838895e3d5a2}{M\-A\-X\-\_\-\-C\-O\-M\-M\-A\-N\-D\-P\-A\-R\-T\-\_\-\-L\-E\-N\-G\-T\-H}\mbox{]}, char values\mbox{[}$\,$\mbox{]}\mbox{[}\hyperlink{group__command__parser_ga6147771b5547853f33eb838895e3d5a2}{M\-A\-X\-\_\-\-C\-O\-M\-M\-A\-N\-D\-P\-A\-R\-T\-\_\-\-L\-E\-N\-G\-T\-H}\mbox{]}, uint8\-\_\-t count)
\begin{DoxyCompactList}\small\item\em Removes an analog input from the board's list. \end{DoxyCompactList}\item 
\hyperlink{struct_analog___input__t}{Analog\-\_\-\-Input\-\_\-t} $\ast$ \hyperlink{group__analog__input_ga697505715d2411ad856bca3d1e726913}{Get\-Analog\-Input\-By\-Number} (uint8\-\_\-t number)
\begin{DoxyCompactList}\small\item\em Retrieve the analog input structure corresponding to a physical channel. \end{DoxyCompactList}\item 
void \hyperlink{group__analog__input_ga3d7d6daf5f4b4a4c455dd9b9aec6053b}{Write\-Analog\-Input} (\hyperlink{struct_analog___input__t}{Analog\-\_\-\-Input\-\_\-t} $\ast$input)
\begin{DoxyCompactList}\small\item\em Prints data from the analog input structure to the data connection. \end{DoxyCompactList}\item 
void \hyperlink{group__analog__input_ga8230666b0182b4ce633c20860b5146ff}{Set\-Analog\-Input\-Write\-Function} (\hyperlink{group__tekdaqc__configuration_ga163b2a4cc55a569e988df48908631967}{Write\-Function} write\-Function)
\begin{DoxyCompactList}\small\item\em Sets the function to use for writing strings to the data connection. \end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{group__analog__input_ga87d73c733aa66effbdafe2a15b7c4a54}{Ext\-Analog\-Input\-To\-String} (External\-Muxed\-Input\-\_\-t input)
\begin{DoxyCompactList}\small\item\em Returns the string representation of an externally muxed analog input. \end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{group__analog__input_gae568c96624ef9e126175706f85eec3b4}{Int\-Analog\-Input\-To\-String} (Internal\-Analog\-Input\-\_\-t input)
\begin{DoxyCompactList}\small\item\em Returns the string representation of an internally muxed analog input. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Contains methods for manipulating and interfacing to the \hyperlink{struct_analog___input__t}{Analog\-\_\-\-Input\-\_\-t} data structure.

\begin{DoxyAuthor}{Author}
Jared Woolston (\href{mailto:jwoolston@tenkiv.com}{\tt jwoolston@tenkiv.\-com}) 
\end{DoxyAuthor}
\begin{DoxySince}{Since}
v1.\-0.\-0.\-0 
\end{DoxySince}


Definition in file \hyperlink{_analog___input_8c_source}{Analog\-\_\-\-Input.\-c}.



\subsection{Macro Definition Documentation}
\hypertarget{_analog___input_8c_a7dbebd58d009663585a0cfffdaeba58e}{\index{Analog\-\_\-\-Input.\-c@{Analog\-\_\-\-Input.\-c}!A\-N\-A\-L\-O\-G\-\_\-\-I\-N\-P\-U\-T\-\_\-\-H\-E\-A\-D\-E\-R@{A\-N\-A\-L\-O\-G\-\_\-\-I\-N\-P\-U\-T\-\_\-\-H\-E\-A\-D\-E\-R}}
\index{A\-N\-A\-L\-O\-G\-\_\-\-I\-N\-P\-U\-T\-\_\-\-H\-E\-A\-D\-E\-R@{A\-N\-A\-L\-O\-G\-\_\-\-I\-N\-P\-U\-T\-\_\-\-H\-E\-A\-D\-E\-R}!Analog_Input.c@{Analog\-\_\-\-Input.\-c}}
\subsubsection[{A\-N\-A\-L\-O\-G\-\_\-\-I\-N\-P\-U\-T\-\_\-\-H\-E\-A\-D\-E\-R}]{\setlength{\rightskip}{0pt plus 5cm}\#define A\-N\-A\-L\-O\-G\-\_\-\-I\-N\-P\-U\-T\-\_\-\-H\-E\-A\-D\-E\-R~\char`\"{}\textbackslash{}n\textbackslash{}r-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/\textbackslash{}n\textbackslash{}r\-Analog Input\textbackslash{}n\textbackslash{}r\textbackslash{}t\-Name\-: \%s\textbackslash{}n\textbackslash{}r\textbackslash{}t\-Physical Input\-: \%i\textbackslash{}n\textbackslash{}r\textbackslash{}t\-P\-G\-A\-: \%s\textbackslash{}n\textbackslash{}r\textbackslash{}t\-Rate\-: \%s\textbackslash{}n\textbackslash{}r\textbackslash{}t\-Buffer Status\-: \%s\textbackslash{}n\textbackslash{}r-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/\textbackslash{}n\textbackslash{}r\char`\"{}}}\label{_analog___input_8c_a7dbebd58d009663585a0cfffdaeba58e}


Definition at line 50 of file Analog\-\_\-\-Input.\-c.

